package com.xwltz.core.annotation;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @description CoreModuleConfig
 * @information on version 1.0 be created by @xwltz at 2021/11/11 18:26
 */

@Component
@ComponentScan("com.xwltz.core")
public class CoreModuleConfig {

	public CoreModuleConfig() {
		System.out.println("已启用核心包组件，准备扫描core下的组件到IOC容器中...");
	}

	//region 框架级配置项

	/// <summary>
	/// 框架版本号
	/// </summary>
	public static final String Version = "1.0.0";
	/// <summary>
	/// 框架作者
	/// </summary>
	public static final String Author = "xwltz";
	/// <summary>
	/// 登陆信息有效期
	/// </summary>
	public static final int LoginExpireDaysProp = 365;

	/// <summary>
	/// 系统秘钥
	/// </summary>
	public static final String Key = "XwLtz";

	/// <summary>
	/// 数据库连接字符串
	/// </summary>
	//public static string ConnectionString = ConfigHelper.GetValue("SqlServerStr");
	//public static string ConnectionString = ConfigurationManager.ConnectionStrings["SqlServerStr"].ToString();
	//public static string ConnectionString = "Data Source = 192.168.11.5;Initial Catalog = test;User Id = sa;Password = ok;";

	//endregion
}
